package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.TravelCommentReplyMapper;
import com.ktgj.customer.domain.TravelCommentReply;
import com.ktgj.customer.service.ITravelCommentReplyService;

/**
 * 评论回复Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-12
 */
@Service
public class TravelCommentReplyServiceImpl implements ITravelCommentReplyService 
{
    @Autowired
    private TravelCommentReplyMapper travelCommentReplyMapper;

    /**
     * 查询评论回复
     * 
     * @param commentReplyId 评论回复ID
     * @return 评论回复
     */
    @Override
    public TravelCommentReply selectTravelCommentReplyById(Long commentReplyId)
    {
        return travelCommentReplyMapper.selectTravelCommentReplyById(commentReplyId);
    }

    /**
     * 查询评论回复列表
     * 
     * @param travelCommentReply 评论回复
     * @return 评论回复
     */
    @Override
    public List<TravelCommentReply> selectTravelCommentReplyList(TravelCommentReply travelCommentReply)
    {
        return travelCommentReplyMapper.selectTravelCommentReplyList(travelCommentReply);
    }

    /**
     * 新增评论回复
     * 
     * @param travelCommentReply 评论回复
     * @return 结果
     */
    @Override
    public int insertTravelCommentReply(TravelCommentReply travelCommentReply)
    {
        return travelCommentReplyMapper.insertTravelCommentReply(travelCommentReply);
    }

    /**
     * 修改评论回复
     * 
     * @param travelCommentReply 评论回复
     * @return 结果
     */
    @Override
    public int updateTravelCommentReply(TravelCommentReply travelCommentReply)
    {
        return travelCommentReplyMapper.updateTravelCommentReply(travelCommentReply);
    }

    /**
     * 批量删除评论回复
     * 
     * @param commentReplyIds 需要删除的评论回复ID
     * @return 结果
     */
    @Override
    public int deleteTravelCommentReplyByIds(Long[] commentReplyIds)
    {
        return travelCommentReplyMapper.deleteTravelCommentReplyByIds(commentReplyIds);
    }

    /**
     * 删除评论回复信息
     * 
     * @param commentReplyId 评论回复ID
     * @return 结果
     */
    @Override
    public int deleteTravelCommentReplyById(Long commentReplyId)
    {
        return travelCommentReplyMapper.deleteTravelCommentReplyById(commentReplyId);
    }
}
